import React,{component} from 'react';
class UserInfo extends React.Component{
 constructor(props){
     super(props);
     this.state={
         userInfo:this.props.userInfo
     }
 }
 render(){
     return(<div>
         <p>昵称:{this.state.userInfo.nickName}</p>
     </div>)
 }
}
export default UserInfo